import request from '@/utils/request'

// 获取设备列表
export function getEquipments(data) {
    return request({
        url: '/api/System/Equipment',
        method: 'get',
        params: data
      })
}

// 添加设备
export function addEquipment(data) {
    return request({
        url: '/api/System/Equipment',
        method: 'post',
        params: data
    })
}

// 修改设备
export function updateEquipment(data) {
    return request({
        url: '/api/System/Equipment',
        method: 'put',
        params: data
    })
}

// 删除设备
export function deleteEquipment(data) {
    return request({
        url: '/api/System/Equipment',
        method: 'delete',
        params: data
    })
}